package cn.iocoder.yudao.module.member.enums.conf;

import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 贵金属交易 - 积分业务类型枚举
 *
 * @author 芋道源码
 */
@Getter
@AllArgsConstructor
public enum PointTransactionTypeEnum implements ArrayValuable<Integer> {

    PHYSICAL_METAL_BUY(1, "实物料买单"),
    PHYSICAL_METAL_SELL(2, "实物料卖单"),
    PRICE_LOCK_BUY(3, "锁价买料"),
    PRICE_LOCK_SELL(4, "锁价卖料"), 
    STORE_MATERIAL_DELAY(5, "存料延期"),
    TAKE_MATERIAL_DELAY(6, "提料延期"),
    REFER_CUSTOMER(7, "推荐客户"),
    REGISTER_AGENT(8, "注册代理"),
    PLATFORM_REGISTER(9, "平台开户"),
    PAY_FIRST_DEPOSIT(10, "首付定金"),
    PAY_DEPOSIT(11, "付定金"),
    ;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(PointTransactionTypeEnum::getType).toArray();

    /**
     * 类型
     */
    private final Integer type;
    /**
     * 描述
     */
    private final String desc;

    @Override
    public Integer[] array() {
        return new Integer[0];
    }
} 